package upms.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import upms.api.fallback.RemoteTestFallback;
import upms.api.vo.UsersVo;

@FeignClient(contextId = "remoteTestService", value = "upms-biz", fallbackFactory = RemoteTestFallback.class)
public interface RemoteTestService {

    /**
     * GET support POJO
     * https://blog.csdn.net/f641385712/article/details/82431502
     * https://docs.spring.io/spring-cloud-openfeign/docs/current/reference/html/#feign-querymap-support
     */
    @GetMapping("/test/testGetPojo")
    UsersVo testGetPojo(@SpringQueryMap UsersVo usersVo);
}